<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand hidden-sm" href="/">电影评论系统</a>
    </div>
    <div class="navbar-collapse collapse" role="navigation" aria-expanded="false" style="height: 1px;">
      <ul class="nav navbar-nav">

        <li class="<%- title=='home'?'active':'' %> "><a href="/htmlEjs/index1">主页</a></li>

        <% if(username){   %>
          <li class="<%- title=='movie'?'active':'' %>"><a href="/htmlEjs/movie">电影列表</a></li>
          <li class="<%- title=='comment'?'active':'' %>"><a href="/comment/index">电影评论</a></li>
          <li class="<%- title=='mlist'?'active':'' %>"><a href="/comment/htmlEjs/mlist">评论列表</a></li>
        <% }else{  %>
        <li class="<%- title=='login'?'active':'' %> "><a href="/htmlEjs/login">登录</a></li>
        <li class="<%- title=='register'?'active':'' %> "><a href="/htmlEjs/register">注册</a></li>
        <% }   %>



      </ul>
      <ul class="nav navbar-nav navbar-right hidden-sm">

        <% if(username){  %>
          <li><a href="/comment/htmlEjs/chat"  >聊天室</a></li>
        <li><a href="/info">个人中心 - <b id='username'><%- username %></b> </a></li>
        <!-- <li><a href="/info">个人中心 - <b id='username'>修改密码</b> </a></li> -->
          <li class="<%- title=='changepass'?'active':'' %>"><a href="/htmlEjs/changepass">修改密码</a></li>
        <li><a href="/htmlEjs/logout">注销 </a></li>
        <% }else{   %>

        <%   }    %>


      </ul>
    </div>
  </div>
</div>